#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class DeviceRcd : Business.BusinessBase<DeviceRcd, int>
	{
		#region Fields and Properties

		private String rcdType = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String RcdType
		{
			get { return rcdType; }
			set
			{
				if (value != rcdType)
				{
					MarkChanged("RcdType");
					rcdType = value;
				}
			}
		}

		private String equipCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String EquipCate
		{
			get { return equipCate; }
			set
			{
				if (value != equipCate)
				{
					MarkChanged("EquipCate");
					equipCate = value;
				}
			}
		}

		private String assResult = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AssResult
		{
			get { return assResult; }
			set
			{
				if (value != assResult)
				{
					MarkChanged("AssResult");
					assResult = value;
				}
			}
		}

		private String assView = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AssView
		{
			get { return assView; }
			set
			{
				if (value != assView)
				{
					MarkChanged("AssView");
					assView = value;
				}
			}
		}

		private String assInChargeCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AssInChargeCode
		{
			get { return assInChargeCode; }
			set
			{
				if (value != assInChargeCode)
				{
					MarkChanged("AssInChargeCode");
					assInChargeCode = value;
				}
			}
		}

		private String assInCharge = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AssInCharge
		{
			get { return assInCharge; }
			set
			{
				if (value != assInCharge)
				{
					MarkChanged("AssInCharge");
					assInCharge = value;
				}
			}
		}

		private int useNum = 0;
		/// <summary>
		/// 
		/// </summary>
		public int UseNum
		{
			get { return useNum; }
			set
			{
				if (value != useNum)
				{
					MarkChanged("UseNum");
					useNum = value;
				}
			}
		}

		private String rcdDetail = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String RcdDetail
		{
			get { return rcdDetail; }
			set
			{
				if (value != rcdDetail)
				{
					MarkChanged("RcdDetail");
					rcdDetail = value;
				}
			}
		}

		private String devUser = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DevUser
		{
			get { return devUser; }
			set
			{
				if (value != devUser)
				{
					MarkChanged("DevUser");
					devUser = value;
				}
			}
		}

		private String devUserCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DevUserCode
		{
			get { return devUserCode; }
			set
			{
				if (value != devUserCode)
				{
					MarkChanged("DevUserCode");
					devUserCode = value;
				}
			}
		}

		private DateTime rcdDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime RcdDate
		{
			get { return rcdDate; }
			set
			{
				if (value != rcdDate)
				{
					MarkChanged("RcdDate");
					rcdDate = value;
				}
			}
		}

		private String code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Code
		{
			get { return code; }
			set
			{
				if (value != code)
				{
					MarkChanged("Code");
					code = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public DeviceRcd()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override DeviceRcd DataSelect(int id)
		{
			return Services.DALService.DeviceRcdService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.DeviceRcdService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.DeviceRcdService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.DeviceRcdService.Delete(this);
		}

		#endregion Base overrides
	}
}
